import Vue from 'vue';
import Router from 'vue-router';
import Home from '@/views/Home';
import Login from '@/views/Login';
import Certification from '@/views/Certification';
import Personal from '@/views/Personal';
import Song from '@/views/Song';
import Payment from '@/views/Payment';
import SSA from '@/views/SSA';
import Charge from '@/views/Charge';
import Singer from '@/views/Singer';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: Home,
    },
    {
      path: '/login',
      name: '登录/注册',
      component: Login,
    },
    {
      path: '/certification',
      name: '艺人认证',
      component: Certification,
    },
    {
      path: '/personal',
      name: '个人中心',
      component: Personal,
    },
    {
      path: '/song/:id',
      name: '歌曲详情',
      component: Song,
    },
    {
      path: '/payment',
      name: '支付',
      component: Payment,
    },
    {
      path: '/ssa/:id',
      name: '明星后援会',
      component: SSA,
    },
    {
      path: '/charge',
      name: '充值会员',
      component: Charge,
    },
    {
      path: '/singer/:id',
      name: '歌手详情',
      component: Singer,
    },
  ],
});
